<template>
  <div>
    <div class="collect-wrap">
      <span @click="showH()">酒店订单</span>
      <span @click="showT()">机票订单</span>
    </div>
    <div class="trickOrder" v-if="shows">
      <trickOrder></trickOrder>
    </div>
    <div class="hotelOrder" v-if="!shows"> 
        <hotelOrder></hotelOrder>
    </div>
  </div>
</template>

<script>
import trickOrder from "./trickOrder.vue";
import hotelOrder from "./hotelOrder.vue";
export default {
  name: "WorkspaceJsonOrder",

  data() {
    return {
      shows: false,
    };
  },

  mounted() {},
  components: {
    trickOrder,
    hotelOrder,
  },

  methods: {
      showH(){
          this.shows = false
      },
      showT(){
          this.shows = true

      }
  },
};
</script>

<style lang="scss" scoped>
.collect-wrap {
  display: flex;
  justify-content: space-around;
  font-size: 15px;
  color: #3fa2c0;
  font-weight: bold;
  border-bottom: #d6d6d6 1px solid;
  padding: 20px 0;
  cursor: pointer;
}
</style>